fit: Add empty fit_print_contents() and fit_image_print()
authorMarek Vasut <[email protected]>
Sat, 12 May 2018 22:22:53 +0000 (00:22 +0200)
committerTom Rini <[email protected]>
Thu, 24 May 2018 02:06:40 +0000 (22:06 -0400)
These functions may be needed in SPL, so add empty variants of them
if CONFIG_SPL_FIT_PRINT is disabled.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Simon Glass <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
common/image-fit.c

index 9224456b612a31930cd048700bccc631ad3f13a4..e3577e2dd73d4344d1ddb142ca7e67cfb98496e7 100644 (file)
@@ -542,7 +542,9 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
                }
        }
 }
-
+#else
+void fit_print_contents(const void *fit) { }
+void fit_image_print(const void *fit, int image_noffset, const char *p) { }
 #endif /* !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_FIT_PRINT) */
 
 /**